package com.course.map.controller.admin;

import com.course.map.domain.Test;
import com.course.map.service.TestService2;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private TestService2 testService2;

    @RequestMapping("/test")
    public List<Test> test() {
        return testService2.list();
    }
}
